how to solve trignometric equation using identities example